<?php
	session_start();
	if (!isset($_SESSION['is_login']) || $_SESSION['is_login'] != 1) {
		header('location: ../../index.php');
		die;
	}

	$table  = $_POST["table"];
	$listid = $_POST["list_id"];

	require("../../librarys/funcs/Connection.php");
	$conn = new Connection();
	$conn->delete_list_data_db($table, $listid);
?>